﻿using Soft;
using Soft.Service;
using Soft.Service.Manager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RemotingDemo
{
    class Program
    {
        private static ScrviceTest test;
        static void Main(string[] args)
        {
            test = new ScrviceTest(1u, new Type[] {
                typeof(JobServiceController),
                typeof(MappingManager)
            });

            test.ServerStarted += (serviceTest) =>
            {
                Console.WriteLine($"{serviceTest}的服务已启动");
            };
            test.Run();

           
        }



        static void Start()
        {
            var a = Encoding.ASCII.GetString(new byte[]
                            {
                                70,
                                105,
                                110,
                                105,
                                115,
                                104
                            });
            Console.WriteLine(a);
        }

  
    }
}